package cn.edu.scau.cmi.xiehaizhou.abstractFactory.factory;

import cn.edu.scau.cmi.xiehaizhou.abstractFactory.domainAbstractClass.AutoDamage;
import cn.edu.scau.cmi.xiehaizhou.abstractFactory.domainAbstractClass.BodyInjur;
import cn.edu.scau.cmi.xiehaizhou.abstractFactory.domainAbstractClass.MultiAccidents;
import cn.edu.scau.cmi.xiehaizhou.abstractFactory.domainAbstractClass.PersonInjur;

public abstract class PolicyProducer {
	public static PolicyProducer getFactory(String brand)
	{
		PolicyProducer af = null;
		switch(brand)
		{
		case "中国人寿保险": af = new PICCPolicy();break;
		case "平安保险": af = new PingAnPolicy();break;
		}
		return af;
	}
	public abstract AutoDamage getAutoDamage();
	public abstract BodyInjur getBodyInjur();
	public abstract MultiAccidents getMultiAccidents();
	public abstract PersonInjur getPersonInjur();
}
